﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestFireBroadcastingHostPhone.Model
{
    public static class DefineTestData
    {
        /// <summary>
        /// 面板式功放的自动测试配置
        /// </summary>
        public enum StyleConfig : byte
        {
            /// <summary>
            /// 面板：不需要485测试
            /// </summary>
            Panel_Uneed485 = 0,
            /// <summary>
            /// 面板：需要485测试
            /// </summary>
            Panel_Need485 = 1,
            /// <summary>
            /// 壁挂：IG8350Z型号测试，需要485
            /// </summary>
            Wall_IG8350Z = 2,
            /// <summary>
            /// 壁挂：其他
            /// </summary>
            Wall_Other = 3,
            /// <summary>
            /// 功放
            /// </summary>
            Amplifier = 4,
            /// <summary>
            /// 主机不需要485复测
            /// </summary>
            HostPhoneUneed485Retest = 5,
            /// <summary>
            /// 功放复测
            /// </summary>
            AmplifierRetest = 6,
            /// <summary>
            /// 一体机
            /// </summary>
            IntegratedMachine = 7,
            /// <summary>
            /// 主机需要485复测
            /// </summary>
            HostPhoneNeed485Reset = 8,
        }
        /// <summary>
        /// 稳定电压下限值
        /// </summary>
        public const int StableVoltageDLimit = 95;
        /// <summary>
        /// 稳定电压上限值
        /// </summary>
        public const int StableVoltageULimit = 120;
        /// <summary>
        /// 1000Hz可能出现的错误电压下限
        /// </summary>
        public const int StableVoltageError = 60;
        /// <summary>
        /// 工装板磁开关检测电压闭合值
        /// </summary>
        public const short MagneticSwitchCloseVoltage = 3000;
        /// <summary>
        /// 工装板磁开关检测电压断开值
        /// </summary>
        public const short MagneticSwitchOpenVoltage = 1000;
        /// <summary>
        /// 24V应急合格电压
        /// </summary>
        public const short Voltage24VEmergencyOK = 60;
        /// <summary>
        /// 关机合格电压
        /// </summary>
        public const short VoltageCloseProductOK = 30;
        /// <summary>
        /// 24V应急自动启动合格电压
        /// </summary>
        public const short Voltage24VStartEmergencyOK = 40;
        /// <summary>
        /// 24V应急电压采集时间频率：单位ms
        /// </summary>
        public const short Voltage24VGetFrequency = 150;
        /// <summary>
        /// 话筒音量录入下限值
        /// </summary>
        public const short VoltageRedioDownData = 56;
        /// <summary>
        /// 话筒音量录入上限值
        /// </summary>
        public const short VoltageRedioUpData = 80;
    }
}
